<?php
require_once ('../../simpletest/unit_tester.php');
require_once ('../../simpletest/reporter.php');
require_once ('../lib/config.php');
require_once ('../lib/facebook.php');
require_once ('../lib/friends.php');
require_once ('../lib/init.php');
require_once ('all_friendship_data_fetch_test_files.php');

//Get Facebook Session for test
try{
    $me = getOneself();
}catch(Exception $e){
    print($login_button);
    exit();
}

//Init GroupTest
$test = &new GroupTest('Graph Data Fetching Tests');

//Add TestCases
foreach($functions as $function){
    $test->addTestCase(new $function());
}

//Output
$test->run(new HtmlReporter());
